<%@ Control Language="C#" AutoEventWireup="true" CodeFile="JsImageBrowser.ascx.cs" Inherits="ScrewTurn.Wiki.JsImageBrowser" %>

<asp:Literal ID="lblContent" runat="server" EnableViewState="false"></asp:Literal>

<script type="text/javascript">
<!--
	function __DisplayJsBrowserContent() {
		document.getElementById("ImageBrowserDiv").innerHTML = __JsBrowserContent.replace(/&quot;/g, "\"").replace(/:::::APOS:::::/g, "\\\'");
	}
    function __SwapStatus(div1Name, div2Name) {
        var div1 = document.getElementById(div1Name);
        var div2 = document.getElementById(div2Name);
        div1.style["display"] = "";
        div2.style["display"] = "none";
        __ClearPreview();
        return false;
    }
    
    function __ShowPreview(url, name, link) {
        document.getElementById("PreviewImg").src = url;
        document.getElementById("ImageDescriptionSpan").innerHTML = name;
        document.getElementById("PreviewLink").style["display"] = "";
        document.getElementById("PreviewLink").href = link;
        return false;
    }
    
    function __ClearPreview() {
        document.getElementById("PreviewImg").src = "Images/Void.png";
        document.getElementById("ImageDescriptionSpan").innerHTML = "&nbsp;";
        document.getElementById("PreviewLink").style["display"] = "none";
        document.getElementById("PreviewLink").href = null;
    }
// -->
</script>

<div id="ImageBrowserDiv"></div>
